package lt.inkredibl.iit.action;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;
import javax.swing.Action;

@SuppressWarnings("serial")
public class ActExit
	extends AbstractAction
{
	public void actionPerformed(ActionEvent e)
	{
		System.exit(0);
	}

	public static ActExit inst()
	{
		ActExit a = new ActExit();
		a.putValue(Action.NAME, "Exit");
		a.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_X);
		return a;
	}
}
